package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 客户（平台）对产品要求
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-02
 */
@Data
@Accessors(chain = true)
@TableName("platform_customer_prod_req")
@ApiModel(value = "CustomerProdReq对象", description = "客户（平台）对产品要求")
public class CustomerProdReq extends BaseEntity {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("客户(平台)id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty("产品枚举ID")
    @TableField("prod_enum_id")
    private Long prodEnumId;

    @ApiModelProperty("产品枚举名称")
    @TableField("prod_enum_name")
    private String prodEnumName;

    @ApiModelProperty("CA厂家名称(多个用逗号隔开)")
    @TableField("ca_company_name")
    private String caCompanyName;

    @ApiModelProperty("延标要求")
    @TableField("delay_require")
    private String delayRequire;

    @ApiModelProperty("预计上线时间")
    @TableField("predict_online_time")
    private LocalDateTime predictOnlineTime;

    @ApiModelProperty("对接状态 0是 1否")
    @TableField("docking_status")
    private Integer dockingStatus;

    @ApiModelProperty("出函后是否允许退订 0 允许退订 1 不允许退订")
    @TableField("unsubscribe_status")
    private Integer unsubscribeStatus;

    @ApiModelProperty("允许理赔 0 允许理赔 1不允许理赔")
    @TableField("allow_claims")
    private Integer allowClaims;

    @ApiModelProperty("加密要求 0 需要加密 1无需加密")
    @TableField("allow_encrypt")
    private Integer allowEncrypt;

    @ApiModelProperty("删除标识（0存在 2 删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String CUSTOMER_ID = "customer_id";

    public static final String PROD_ENUM_ID = "prod_enum_id";

    public static final String PROD_ENUM_NAME = "prod_enum_name";

    public static final String CA_COMPANY_NAME = "ca_company_name";

    public static final String DELAY_REQUIRE = "delay_require";

    public static final String PREDICT_ONLINE_TIME = "predict_online_time";

    public static final String DOCKING_STATUS = "docking_status";

    public static final String UNSUBSCRIBE_STATUS = "unsubscribe_status";

    public static final String ALLOW_CLAIMS = "allow_claims";

    public static final String ALLOW_ENCRYPT = "allow_encrypt";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
